<template lang="">
    <div>
                    <!-- 面包屑导航 -->
         <el-bread  class="add"></el-bread>

     <v-list @edit = "edit"></v-list>

     <v-dialog ref="reference" @cancel = "cancel" :isAdd = "isAdd"></v-dialog>
    </div>
    </div>
</template>
<script>
import vList from './list.vue'
import vDialog from './dialog.vue'
export default {
    data() {
        return {
            isAdd:false
        }
    },
    components:{
        vList,
        vDialog
    },
    methods: {
        edit(e){
            this.isAdd = true
            this.$refs.reference.lookup(e)
        },
        cancel(e){
            this.isAdd = e
        }
    },
}
</script>
<style lang="less" scoped>
.add {
    margin-bottom: 20px;
}
</style>